/**
 * ResourceEntity.java
 * com.sftz.assets.entities
 * Copyright (c) 2018, 北京科技有限公司版权所有.
*/

package com.sftz.assets.entities;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import com.uxuexi.core.common.util.DateTimeUtil;

/**
 * @author   闫志彬
 * @Date	 2018年12月13日 	 
 */
@Data
@Table("resource")
public class ResourceEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id(auto = true)
	private Integer id;

	@Column
	@Comment("课程Id")
	private Integer courseId;

	@Column
	@Comment("资源名称")
	private String resourceName;

	@Column
	@Comment("资源类型")
	private Integer resourceType;

	@Column
	@Comment("创建时间")
	private Date createDate = DateTimeUtil.nowDate();

	@Column
	@Comment("创建人id")
	private Integer userid;

	@Column
	@Comment("排序")
	private Integer sort;

	@Column
	@Comment("资源启用状态")
	private Integer status;

}
